<!doctype html>
<html>

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>缤格</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../css/swiper.min.css" />
    <link rel="stylesheet" type="text/css" href="../../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../../css/binge.css" />
    <script type="text/javascript" src="../../script/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="../../script/swiper.min.js"></script>
    <script type="text/javascript" src="../../script/mobile.js"></script>
    <script type="text/javascript">
        window['adaptive'].desinWidth = 750;
        window['adaptive'].baseFont = 28;
        window['adaptive'].maxWidth = 750;
        window['adaptive'].init();
    </script>
</head>

<body>
<!-- header -->
<div id="header" style="height: 0.9rem; background: #fff; position: fixed; top: 0;left: 0; width: 100%; z-index: 99">
    <div class="header">
        <div class="head-back">
            <a href="javascript:void(0);" tapmode onclick="comeBack()" class="back-btn"></a>
        </div>
        <div class="head-title">
            <h6 id="title"></h6>
        </div>
        <!--<div class="head-action">-->
            <!--<a href="javascript:void(0);" tapmode onclick="openModel()" class="action-btn"></a>-->
        <!--</div>-->
    </div>
</div>
<!-- header end -->
<div class="header-h" style="padding-top: 1.6rem;"></div>

<div class="store-detail">
    <!--<div class="store-list">
        <ul id="storeContent">
            <li style="padding: 0 0.3rem 0.3rem; height: auto; border-bottom: none; align-items: flex-start;">
                <div class="store-img bg-cover" id="storeImg" style="background: url('')"></div>
                <div class="store-info">
                    <h6 class="mb5 pt10" id="titleName"></h6>
                    <p class="" id="brief"></p>
                </div>
            </li>
        </ul>
    </div>-->
    <div class="content" style="padding: 0 0.3rem 0.4rem;" id="content">

    </div>
</div>


</body>

</html>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript">
    var store_id = '';//商家id
    apiready = function() {

        setFixStatusBar(); //设置状态栏
        pop.loading();
        keybackListener()
        store_id = api.pageParam.store_id;

        getStoreDetail()

    };

    //获取商家详情
    function getStoreDetail() {
        var param = {
            token: $api.getStorage('token'),
            id: store_id,
        };
        getAjax(Interface.get_square,param,function (res) {
            var data = res.data;

            if(isDefine(data)){

                $('#title').html(data.title)
                $('#storeImg').css({background: 'url(' + ajaxUrl + data.logo_path + ')'});
                $('#titleName').html(data.title)
                $('#brief').html(data.brief)
                $('#content').html(data.content)

            }

            pop.close()
        },function (error) {
            pop.notice(error.msg)
            pop.close()
        })
    }


</script>
